package com.ssb.admin.constant;


public class Constants {


    public static String SESSION_USER = "USER_INFO";
    public static String SESSION_AUTHORIZATION = "SESSION_AUTHORIZATION";
    /**
     * 设置 request 的键，用来保存 认证的 userID,
     */
    public static String USER_ID = "USER_ID";
    /**
     * shiro 密码错误重试次数
     */
    public static String RETRY_COUNT = "RETRY_COUNT";
    /**
     * 验证码Key
     */
    public static String CAPTCHA_KEY = "CAPTCHA_KEY";



    /**
     * 超级管理员角色
     */
    public static final Long USER_SADMIN = 1L;
    /**
     * 管理员角色
     */
    public static final Long USER_ADMIN = 2L;
    /**
     * 审核员角色
     */
    public static final Long USER_AUDIT = 3L;


    public class STATUS {
        public static final int DEFAULT = 0;
        public static final int NORMAL = 1;
        public static final int FROZEN = 2;
    }

    /**
     * 菜单类型
     */
    public enum MenuType {
        /**
         * 模块
         */
        MODULE(1),
        /**
         * 菜单
         */
        MENU(2),
        /**
         * 按钮
         */
        BUTTON(3);

        private int value;

        MenuType(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }

}
